#ifndef MAPLISTFORM_H
#define MAPLISTFORM_H

#include <QWidget>
#include <QList>
#include <QModelIndex>
#include <QMessageBox>
#include "geocaching.h"
#include "createmapdialog.h"
#include "editmapdialog.h"

// Форма "Список карт".

namespace Ui {
class MapListForm;
}

class MapListForm : public QWidget
{
    Q_OBJECT

public:
    explicit MapListForm(Geocaching*, QWidget *parent = 0);
    ~MapListForm();
    void activateWindow();
private:
    Ui::MapListForm *ui;
    Geocaching *myProg;
private slots:
    void UpdateForm(void);
    void on_createMapButton_clicked();
    void on_editMapButton_clicked();
    void on_deleteMapButton_clicked();
    void on_mapListWidget_doubleClicked(const QModelIndex &index);
    void on_mapFindLineEdit_returnPressed();
    void on_setCurrentButton_clicked();
    void on_closeCurrentButton_clicked();
    void on_mapListWidget_currentRowChanged(int currentRow);
};

#endif // MAPLISTFORM_H
